:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #5f6b7a;
  --card: #f6f8fa;
  --accent: #4f46e5;
  --border: #e5e7eb;
}

.theme-dark {
  --bg: #0b0f14;
  --text: #f2f5f8;
  --muted: #a3adb8;
  --card: #121821;
  --accent: #7c8cff;
  --border: #1f2937;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header, .site-footer {
  border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: 0; }
.site-header .container, .site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand { font-size: 20px; margin: 0; }

.site-main { padding: 24px 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 16px; color: var(--muted); }

.actions { display: flex; gap: 12px; }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (min-width: 720px) {
  .card { padding: 24px; }
}